package com.gt.web.srv.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.Builder;
import lombok.AllArgsConstructor;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * 村民家庭表;
 *
 * @author Yu Chaohua
 * @date 2024-5-24
 */
@ApiModel(value = "村民家庭表", description = "")
@TableName("biz_family")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class BizFamilyEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(notes = "家庭ID")
    @TableId(value = "family_id", type = IdType.AUTO)
    private Long familyId;

    @ApiModelProperty(notes = "户主身份证号")
    @TableField(value = "family_head_card")
    private String familyHeadCard;

    @ApiModelProperty(notes = "家庭名称")
    @TableField(value = "family_name")
    private String familyName;

    @ApiModelProperty(notes = "家庭联系方式")
    @TableField(value = "family_mobile")
    private String familyMobile;

    @ApiModelProperty(notes = "家庭积分数")
    @TableField(value = "family_score")
    private Integer familyScore;

    @ApiModelProperty(notes = "状态（0正常 1停用）")
    @TableField(value = "status")
    private Integer status;

    @ApiModelProperty(notes = "创建者")
    @TableField(value = "create_by")
    private String createBy;

    @ApiModelProperty(notes = "创建时间")
    @TableField(value = "create_time")
    private Date createTime;

    @ApiModelProperty(notes = "更新者")
    @TableField(value = "update_by")
    private String updateBy;

    @ApiModelProperty(notes = "更新时间")
    @TableField(value = "update_time")
    private Date updateTime;

    @ApiModelProperty(notes = "备注")
    @TableField(value = "remark")
    private String remark;

    @TableField(value = "expire_start")
    private LocalDateTime expireStart;
    @TableField(value = "expire_end")
    private LocalDateTime expireEnd;

    @TableField(value = "community_id")
    private Long communityId;
    @TableField(value = "community_name")
    private String communityName;
}